let line
while (line = readline()) {
  let [a, b] = line.split(' ').map(Number)
  if (a === 0 && b === 0) break
  print(a + b)
}